package mm.core;

import javax.sql.DataSource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.jdbc.core.JdbcTemplate;

import mm.util.DebuggableJdbcTemplate;

public class DataBase {
		
	@SuppressWarnings("unused")
	private static final Log LOG=LogFactory.getLog(DataBase.class);
	
	private static JdbcTemplate jt;
	
	public DataBase(DataSource dataSource){
		// shall be called on spring context starting
		jt = new DebuggableJdbcTemplate(dataSource);
	}
	
	public static JdbcTemplate getJdbcTemplate() {
		return jt;
	}

}
